Download OpenAPI specification:
Generates a new API token scoped to the specified node. The caller must have owner permission on the node. Use self as nodeId to create a token for the authenticated user's own node.
| nodeId required | string Resource UUID, or |
| name required | string^[A-Za-z0-9\-._~]+$ Human-readable label for the token, unique per node. Must contain only URL-safe characters: |
| allowedEndpoints required | Array of strings[ items^(ANY|[A-Z]+(\|[A-Z]+)*) /.*$ ] Endpoint patterns this token is permitted to access. Each entry must be |
| expires | string <date-time> Optional expiry timestamp. Omit for a non-expiring token. |
| uses | integer >= 0 Optional maximum use count. Omit for unlimited uses. |
{- "name": "string",
- "allowedEndpoints": [
- "GET /service/**",
- "PUT|DELETE /permissions/1234-1234-1234-1234/*",
- "ANY /files/cartafs/*"
], - "expires": "2019-08-24T14:15:22Z",
- "uses": 0
}{- "name": "string",
- "token": "string",
- "allowedEndpoints": [
- "string"
], - "expires": "2019-08-24T14:15:22Z",
- "uses": 0,
- "revoked": true,
- "autoRemove": true,
- "lastUsed": "2019-08-24T14:15:22Z"
}Returns all tokens belonging to the specified node. Token keys are partially obfuscated. The caller must have owner permission on the node. Use self as nodeId to list tokens for the authenticated user's own node.
| nodeId required | string Resource UUID, or |
[- {
- "name": "string",
- "token": "string",
- "allowedEndpoints": [
- "string"
], - "expires": "2019-08-24T14:15:22Z",
- "uses": 0,
- "revoked": true,
- "autoRemove": true,
- "lastUsed": "2019-08-24T14:15:22Z"
}
]Deletes the named token from the specified node. The caller must have owner permission on the node. Use self as nodeId to target the authenticated user's own node.
| nodeId required | string Resource UUID, or |
| tokenName required | string |
Revokes the named token. If the token was created with autoRemove: true it is deleted from the database; otherwise it is marked as revoked and remains visible in list responses with revoked: true. A revoked token is rejected immediately on use regardless of remaining uses or expiry. The caller must have owner permission on the node. Use self as nodeId to target the authenticated user's own node.
| nodeId required | string Resource UUID, or |
| tokenName required | string |
Returns the effective permission flags that fromResource has over toResource, resolved through the full permission path. Use self as fromResource to check the authenticated user's permissions.
| fromResource required | string Resource UUID, or |
| toResource required | string Destination resource UUID |
{- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}| fromResource required | string Resource UUID, or |
| toResource required | string Destination resource UUID |
object (PermissionFlags) | |
object (PermissionFlags) | |
object (PermissionFlags) |
{- "user": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "private": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "shared": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}
}{- "user": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "private": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "shared": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}
}| fromResource required | string Resource UUID, or |
| toResource required | string Destination resource UUID |
{- "user": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "private": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "shared": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}
}Returns the distinct set of user-defined labels present on all nodes reachable from fromResource via permission edges. The caller must have at least shared access to fromResource. Use self as fromResource to query from the authenticated user's own node.
| fromResource required | string Resource UUID, or |
[- "string"
]| fromResource required | string Resource UUID, or |
| label required | string Label/type filter for accessible resources |
[- {
- "id": "string",
- "name": "string",
- "permission": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}
}
]| fromResource required | string Resource UUID, or |
| label required | string Label/type filter for accessor nodes |
[- {
- "id": "string",
- "name": "string",
- "permission": {
- "user": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "private": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}, - "shared": {
- "execute": true,
- "write": true,
- "read": true,
- "admin": true,
- "owner": true
}
}
}
]| name required | string |
| labels required | Array of strings |
object |
{- "name": "string",
- "labels": [
- "string"
], - "props": { }
}{- "id": "string",
- "name": "string",
- "labels": [
- "string"
], - "props": { }
}| resourceId required | string |
| name | string |
object |
{- "name": "string",
- "props": { }
}{- "id": "string",
- "name": "string",
- "labels": [
- "string"
], - "props": { }
}| resourceType required | string Enum: "service" "namespace" "project" "connection" "file" |
| userId | string Check accessibility for a specific user instead of the caller |
[- {
- "id": "string",
- "permission": "Admin, Write, Read, Execute, Clone"
}
]| resourceType required | string Enum: "service" "namespace" "project" "connection" "file" |
| resourceId required | string |
{- "id": "string",
- "permission": "Admin, Write, Read, Execute, Clone"
}| resourceId required | string |
| userId required | string |
| role required | string Enum: "guest" "user" "editor" "owner" |
| userType required | string |
"Admin, Write, Read, Execute, Clone"| resourceId required | string |
| userType required | string |
[- {
- "id": "string",
- "userId": "string",
- "permission": "Admin, Write, Read, Execute, Clone",
- "userType": "string"
}
]| name required | string |
| bucketName | string |
{- "name": "string",
- "bucketName": "string"
}{- "id": "string",
- "permission": "Admin, Write, Read, Execute, Clone",
- "name": "string",
- "bucketName": "string"
}| projectId required | string |
| name required | string |
| backend required | string |
| keyPath | string |
required | object (NativeId) |
{- "name": "string",
- "backend": "string",
- "keyPath": "string",
- "nativeId": {
- "fileId": "string",
- "bucketName": "string",
- "prefix": "string"
}
}{- "id": "string",
- "permission": "Admin, Write, Read, Execute, Clone",
- "name": "string",
- "backend": "string",
- "keyPath": "string",
- "nativeId": {
- "fileId": "string",
- "bucketName": "string",
- "prefix": "string"
}
}| namespace required | string |
| service required | string |
| baseUrl required | string <uri> Base URL the service is reachable at |
{- "id": "string",
- "permission": "Admin, Write, Read, Execute, Clone",
- "name": "string",
}| name required | string |
| email required | string <email> |
| organization | string |
{- "name": "string",
- "email": "user@example.com",
- "organization": "string"
}{- "id": "string",
- "name": "string",
- "email": "user@example.com",
- "firstName": "string",
- "lastName": "string",
- "organization": "string",
- "groups": [
- "string"
]
}| attributeName required | string |
| attributeValue required | string |
| attributeFilter required | string |
[- {
- "id": "string",
- "name": "string",
- "email": "user@example.com",
- "firstName": "string",
- "lastName": "string",
- "organization": "string",
- "groups": [
- "string"
]
}
]| source required | string Value: "Carta" |
| path | string |
| containerId | string |
[- {
- "id": "string",
- "path": "string",
- "name": "string",
- "source": "Carta",
- "type": "File",
- "owner": "string"
}
]| source required | string Value: "Carta" |
| containerId | string |
| file required | string <binary> |
{- "id": "string",
- "path": "string",
- "name": "string",
- "source": "Carta",
- "type": "File",
- "owner": "string"
}| source required | string Value: "Carta" |
| fileId required | string |
| file required | string <binary> |
{- "id": "string",
- "path": "string",
- "name": "string",
- "source": "Carta",
- "type": "File",
- "owner": "string"
}The secret name is taken from the request header key prefixed with secret- (e.g. secret-mytoken), and the secret value is the corresponding header value. Secrets are scoped per user and overwrite any existing secret with the same name.
| secret-{name} required | string A header whose key starts with |
{- "error": "string"
}