Resolve a namespace path
POST
Find the resource that a namespace path refers to at one immutable commit. When no resource has the path, the response has no resource. You must have permission to read the project state.
bearerAuthheader
AuthorizationBearer <token>project_id*stringOwning project identifier. Nonempty, at most 128 UTF-8 bytes, with no control characters. Project creation belongs to the project service.
commit_id*stringImmutable UUIDv7 project commit identity.
Format
uuidapplication/json- body
Resolve one absolute path at the exact commit in the route. An absent binding returns no resource, while an unknown commit is an error.
path*array<>Absolute path from the project root, or a relative path where explicitly stated. Empty selects the root. At most 64 segments.
Success
application/json- response
commitId*catalog.CommitIdImmutable UUIDv7 project commit identity.
Format
uuidresource?|nullcurl -X POST 'https://api.spiraldb.dev/api/catalog/projects/string/commits/497f6eca-6276-4993-bfeb-53cbbbba6f08/namespace/resolve' \ -H 'Content-Type: application/json' \ -d '{ "path": [ "string" ]}'{ "commitId": "a1b223ee-0195-4e35-9b2a-72c93f345117", "resource": { "descriptor": { "kind": "string", "namespaceManaged": true, "namespaceRoot": "cfa7f0de-65e7-43ae-ae5e-e42145401b8a", "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6", "service": "string" }, "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7" }}