Skip to Content
Omnibase

Create relationship

POST
/api/v1/permissions/relationships

Authorization

ServiceKeyAuth
headerX-Service-Key<token>

Admin service-to-service key. Trusted for all routes and skips permission checks.

Request Body

application/json
  1. body
namespace*string
object*string
relation*string
subject_set*

Response Body

OK

application/json
  1. response
message*string
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/permissions/relationships' \  -H 'Content-Type: application/json' \  -d '{  "namespace": "Tenant",  "object": "tenant_test_123",  "relation": "can_invite_user",  "subject_set": {    "namespace": "User",    "object": "550e8400-e29b-41d4-a716-446655440000"  }}'
Example Response
{  "message": "string"}