Skip to content
Select language:English

/api/v1/locations/{locationId}/secret-policies/{typeFieldId} (PUT)

PUT
/api/v1/locations/{locationId}/secret-policies/{typeFieldId}
curl --request PUT \
--url https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/secret-policies/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--data '{ "revealRoles": [ "owner" ], "revealUserIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "aiAllowed": true }'
locationId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
typeFieldId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Media typeapplication/json
object
revealRoles
required
Array<string>
<= 4 items
Allowed values: owner admin member viewer
revealUserIds
required
Array<string>
<= 200 items
aiAllowed
required
boolean

Default Response

Media typeapplication/json
object
revealRoles
required
Array<string>
Allowed values: owner admin member viewer
revealUserIds
required
Array<string>
aiAllowed
required
boolean
Example
{
"revealRoles": [
"owner"
]
}