Reference / Authz

Replace the application's authorization model (validated before it is stored).

PUT /v1/authz/model
End-user session operationId: put_model

Authorization

Called from the browser with the publishable application id (x-application-id); the access token lives in memory.

Request body · required

any

Responses

200 Model stored
{
  "data": {},
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
422 Invalid model

Request

curl -X PUT "http://localhost:8080/v1/authz/model" \
  -H "Content-Type: application/json" \
  -d '{}'

Try it

live request
PUT http://localhost:8080/v1/authz/model

Request body

application/json