Create_location
POST
Create a Location and its initial immutable version. The inventory must be an existing Table in the Project.
bearerAuthheader
AuthorizationBearer <token>application/json- body
backing*inventory*projectId*stringSuccess
application/json- response
locationId*stringFormat
uuidversion*curl -X POST 'https://api.spiraldb.dev/api/locations' \ -H 'Content-Type: application/json' \ -d '{ "backing": { "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d", "uri": "string" }, "inventory": { "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6" }, "projectId": "string"}'{ "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54", "version": { "createdAtMicros": "string", "definition": { "backing": { "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d", "uri": "string" }, "inventory": { "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6" } }, "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54", "parentVersionId": "abf80970-9686-419e-bc00-5ddcccc33ba6", "refresh": { "changes": "string" }, "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7" }}