stages_invitation_invitations_create
POST/api/v3//stages/invitation/invitations/
Invitation Viewset
Request
- 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
- 201
- 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-07-29T15:51:28.071Z",
"fixed_data": {},
"single_use": true,
"flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "/api/v3/stages/invitation/invitations/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"name\": \"string\",\n \"expires\": \"2024-07-29T15:51:28.071Z\",\n \"fixed_data\": {},\n \"single_use\": true,\n \"flow\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());