Connections
Deny an app that signs in with Plotwork
Records that you said no and answers redirectTo, the app's address with error=access_denied.
POST
/user/apps/denyTL;DR
| Question | Answer |
|---|---|
| What does it do? | Deny an app that signs in with Plotwork. |
| What does it take? | A JSON body of type DenyAppBody. |
| What does it return? | Status 200 with a body of type AppAnswer. |
| What can go wrong? | 400 the request is malformed, expired (oauth.request_expired), or not signed by this API (oauth.request_invalid); 401 not signed in; 403 the request came from an origin that may not make changes; 409 the sign-in link was already answered (oauth.request_used); 429 too many requests; 503 sign in with Plotwork is not available on this server (oauth.unavailable). Every failure uses the one error envelope. |
What it does
Records that you said no and answers redirectTo, the app's address with error=access_denied. Nothing is made. A link already answered is 409 oauth.request_used.
Request body
The body has the type DenyAppBody.
| Field | Type | Required | Description |
|---|---|---|---|
request | string | yes | The signed authorization request, exactly as the API put it in the consent page address. at least 1 character; at most 6144 characters. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Denied; go to redirectTo. | AppAnswer |
| 400 | The request is malformed, expired (oauth.request_expired), or not signed by this API (oauth.request_invalid). | ErrorResponse |
| 401 | Not signed in. | ErrorResponse |
| 403 | The request came from an origin that may not make changes. | ErrorResponse |
| 409 | The sign-in link was already answered (oauth.request_used). | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
| 503 | Sign in with Plotwork is not available on this server (oauth.unavailable). | ErrorResponse |
Response body
A 200 answer has the type AppAnswer.
| Field | Type | Required | Description |
|---|---|---|---|
redirectTo | string | yes | The app's redirect address with code (or error), state and iss. Navigate there. |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |