Saml mappings

SAML Mappings

GEThttps://cloud-api.calyptia.com/v1/projects/{projectID}/saml_mappings
Authorization
Path parameters
projectID*string (uuid)
Response

OK

Body
items*array of SAMLMapping (object)
endCursor*nullable string
count*integer (int32)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/saml_mappings', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "items": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "projectID": "123e4567-e89b-12d3-a456-426614174000",
      "claimKey": "text",
      "claimValue": "text",
      "role": "admin",
      "createdAt": "2024-09-16T19:11:55.418Z",
      "updatedAt": "2024-09-16T19:11:55.418Z"
    }
  ],
  "endCursor": "text"
}

Create SAML Mapping

POSThttps://cloud-api.calyptia.com/v1/projects/{projectID}/saml_mappings
Authorization
Path parameters
projectID*string (uuid)
Body
claimKey*string
claimValue*string
role*Role (enum)
adminmanagerteamviewer
Response

Created

Body
id*string (uuid)
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/saml_mappings', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "claimKey": "text",
      "claimValue": "text",
      "role": "admin"
    }),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2024-09-16T19:11:55.418Z"
}