Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > SSO Settings

Update SSO Settings

Body parameters

type string Required

Must be exactly "sso_settings".

attributes.idp_saml_metadata_url null, string Optional

URL of Identity Provider SAML Metadata endpoint

Example: "https://my-org.oktapreview.com/app/XXXX/sso/saml/metadata"
attributes.idp_saml_metadata_xml null, string Optional

Identity Provider SAML Metadata

Example: '<?xml version="1.0" encoding="UTF-8"?>...'
relationships.default_role.data Optional

The default role assigned to SSO users that do not belong to any SSO group

Returns

Returns a resource object of type sso_settings.

Examples

PUT https://site-api.datocms.com/sso-settings HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Content-Type: application/vnd.api+json
{
"data": {
"type": "sso_settings"
}
}
Terminal window
curl -g 'https://site-api.datocms.com/sso-settings' \
-X PUT \
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3" \
-H "Content-Type: application/vnd.api+json" \
--data-binary '{"data":{"type":"sso_settings"}}'
await fetch("https://site-api.datocms.com/sso-settings", {
method: "PUT",
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
"Content-Type": "application/vnd.api+json",
},
body: JSON.stringify({ data: { type: "sso_settings" } }),
});
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": {
"type": "sso_settings",
"id": "312",
"attributes": {
"idp_saml_metadata_url": "https://my-org.oktapreview.com/app/XXXX/sso/saml/metadata",
"scim_base_url": "https://sso.datocms.com/scim",
"saml_acs_url": "https://sso.datocms.com/XXX/saml/consume",
"sp_saml_metadata_url": "https://sso.datocms.com/XXX/saml/metadata",
"sp_saml_base_url": "https://sso.datocms.com/XXX/saml",
"saml_token": "a2a24ae5fbb2d955b1b4fa73f2dd58"
},
"relationships": {
"default_role": {
"data": null
}
}
}
}