Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Replace Organization

PUT/api/v2/admin/organizations/{organizationRid}
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Replace the Organization with the specified rid.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:admin-write.

Path parameters

organizationRid
string

Query parameters

preview
boolean
optional

Enables the use of preview functionality.

Request body

ReplaceOrganizationRequest
object
Hide child attributes

Hide child attributes

name
string
host
string
optional

The primary host name of the Organization. This should be used when constructing URLs for users of this Organization.

description
string
optional

Response body

Organization
object

The replaced Organization

Hide child attributes

Hide child attributes

rid
string
name
string
description
string
optional
markingId
string

The ID of this Organization's underlying marking. Organization guest access can be managed by updating the membership of this Marking.

host
string
optional

The primary host name of the Organization. This should be used when constructing URLs for users of this Organization.

Examples

Request

Copied!
1 2 3 4 5 curl -X PUT \ -H "Content-type: application/json" \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/admin/organizations/ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa?preview=true" \ -d '{"name":"Example Organization","host":"example.palantirfoundry.com"}'

Response

Copied!
1 2 3 4 5 6 { "name": "Example Organization", "host": "example.palantirfoundry.com", "rid": "ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa", "markingId": "18212f9a-0e63-4b79-96a0-aae04df23336" }

Error responses

Error Name
InvalidHostNameError CodeINVALID_ARGUMENT
Status Code400
DescriptionThe provided hostname must be a valid domain name. The only allowed characters are letters, numbers, periods, and hyphens.
ParametersinvalidHostName
ReplaceOrganizationPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not replace the Organization.
ParametersorganizationRid