/auth/v1/domains/<domain_ID>: PATCH
Updates the attributes of an existing domain.
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
Χ | Χ | Χ | ✓ | Χ |
Synopsis of the request URL
curl -k -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’
https://<spectrum_discover_host>/auth/v1/domains/<domain_ID> -X PATCH -d ‘<json_details_to_update>'
Supported request types and response formats
In an LDAP domain, you can update the following attributes:
- "id"
- "type"
- "host"
- "port"
- "binddn"
- "bindpassword"
- "basedn"
Supported request types:
- PATCH
- JSON
Examples
The following example shows how to update the attributes of a domain:
Request:
curl -k -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/domains/a51f84bfeb034b12a9a362109d78bec3 -X PATCH
-d ‘{"id":"7a2251243611437cae707fb1aa5acf2c", "type":"Default"}'
Response:
200 OK