Create Application (SAML)
POSThttps://$CUSTOM-DOMAIN/management/v1/projects/:projectId/apps/saml
Create a new SAML client. Returns an entity ID
Request​
Path Parameters
projectId stringrequired
Header Parameters
x-zitadel-orgid string
The default is always the organization of the requesting user. If you like to change/get objects of another organization include the header. Make sure the requesting user has permission to access the requested data.
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
name stringrequired
Possible values: non-empty
and <= 200 characters
metadataXml byte
metadataUrl string
loginVersion
object
Body
required
name stringrequired
Possible values: non-empty
and <= 200 characters
metadataXml byte
metadataUrl string
loginVersion
object
Body
required
name stringrequired
Possible values: non-empty
and <= 200 characters
metadataXml byte
metadataUrl string
loginVersion
object
Responses​
- 200
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
appId string
details
object
{
"appId": "string",
"details": {
"sequence": "2",
"creationDate": "2025-03-04T15:26:57.924Z",
"changeDate": "2025-03-04T15:26:57.924Z",
"resourceOwner": "69629023906488334"
}
}
- Schema
- Example (from schema)
Schema
appId string
details
object
{
"appId": "string",
"details": {
"sequence": "2",
"creationDate": "2025-03-04T15:26:57.924Z",
"changeDate": "2025-03-04T15:26:57.924Z",
"resourceOwner": "69629023906488334"
}
}
- Schema
- Example (from schema)
Schema
appId string
details
object
{
"appId": "string",
"details": {
"sequence": "2",
"creationDate": "2025-03-04T15:26:57.924Z",
"changeDate": "2025-03-04T15:26:57.924Z",
"resourceOwner": "69629023906488334"
}
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/management/v1/projects/:projectId/apps/saml' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "MySAMLApp",
"metadataXml": "string",
"metadataUrl": "string",
"loginVersion": {
"loginV1": {},
"loginV2": {
"baseUri": "string"
}
}
}'
ResponseClear