stages_invitation_invitations_update
PUT/api/v3//stages/invitation/invitations/:invite_uuid/
Invitation Viewset
Request
Path Parameters
invite_uuid uuidrequired
A UUID string identifying this Invitation.
- application/json
Body
required
name stringrequired
Possible values: non-empty
and <= 50 characters
, Value must match regular expression ^[-a-zA-Z0-9_]+$
expires date-timenullable
fixed_data
object
single_use boolean
When enabled, the invitation will be deleted after usage.
flow uuidnullable
When set, only the configured flow can use this invitation.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pk uuidrequired
name stringrequired
Possible values: <= 50 characters
, Value must match regular expression ^[-a-zA-Z0-9_]+$
expires date-timenullable
fixed_data
object
created_by
object
required
single_use boolean
When enabled, the invitation will be deleted after usage.
flow uuidnullable
When set, only the configured flow can use this invitation.
flow_obj
object
required
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"expires": "2024-09-27T14:26:18.977Z",
"fixed_data": {},
"created_by": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-09-27T14:26:18.977Z",
"email": "[email protected]",
"attributes": {},
"uid": "string"
},
"single_use": true,
"flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"flow_obj": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"policybindingmodel_ptr_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"slug": "string",
"title": "string",
"designation": "authentication",
"background": "string",
"stages": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"policies": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"cache_count": 0,
"policy_engine_mode": "all",
"compatibility_mode": true,
"export_url": "string",
"layout": "stacked",
"denied_action": "message_continue",
"authentication": "none"
}
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT '/api/v3/stages/invitation/invitations/:invite_uuid/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"expires": "2024-09-27T14:26:17.914Z",
"fixed_data": {},
"single_use": true,
"flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'