Skip to main content
POST
/
governance
/
permissions
/
set-parent
Set resource parent relationship
curl --request POST \
  --url https://api.example.com/governance/permissions/set-parent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resource_type": "<string>",
  "resource_id": "<string>",
  "parent_type": "<string>",
  "parent_id": "<string>"
}
'
{
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to link a resource to its parent in the hierarchy.

resource_type
string
required

Type of child resource (e.g., 'project', 'artifact', 'secret')

Examples:

"project"

"artifact"

"secret"

resource_id
string
required

ID of the child resource

Examples:

"my-project"

"artifact-123"

"artifact-123/api-key"

parent_type
string
required

Type of parent resource (e.g., 'organization', 'project')

Examples:

"organization"

"project"

"artifact"

parent_id
string
required

ID of the parent resource

Examples:

"my-org"

"my-project"

"artifact-123"

Response

Successful Response

Success response for permission operations.

message
string
required

Success message