Skip to main content
POST
Set resource parent relationship

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