Python SDK
import json
import os
from parable_types_web_api import FindArtifactPublicationNamespaceInput
from parable_web_api_sdk import ClientConfig, WebApiSDK
sdk = WebApiSDK(
ClientConfig(
base_url=os.environ["PARABLE_API_URL"],
auth_token=os.environ["PARABLE_API_TOKEN"],
default_headers={"X-Tenant": os.environ["PARABLE_WORKSPACE"]},
)
)
input_data = FindArtifactPublicationNamespaceInput.model_validate(
json.loads("{\"namespaceSlug\":\"example\"}"),
)
result = sdk.artifacts.find_artifact_publication_namespace(input_data)sdk, err := webapisdk.New(webapisdk.SDKConfig{
BaseURL: os.Getenv("PARABLE_API_URL"),
Auth: &webapisdk.AuthConfig{Token: os.Getenv("PARABLE_API_TOKEN")},
RequestInterceptor: func(ctx context.Context, req *http.Request) error {
req.Header.Set("X-Tenant", os.Getenv("PARABLE_WORKSPACE"))
return nil
},
})
if err != nil {
return err
}
var input webapitypes.FindArtifactPublicationNamespaceInput
if err := json.Unmarshal([]byte(`{"namespaceSlug":"example"}`), &input); err != nil {
return err
}
result, err := sdk.ArtifactsNamespace.FindArtifactPublicationNamespace(ctx, input){
"data": {
"namespaceId": "<string>",
"namespaceSlug": "<string>",
"revisions": [
{
"revisionId": "<string>",
"state": "STAGING",
"failureCode": "<string>"
}
],
"activeRevisionId": "<string>",
"previousRevisionId": "<string>"
},
"meta": {
"requestId": "<string>",
"totalCount": 123
},
"links": {
"first": "<string>",
"last": "<string>",
"next": "<string>",
"prev": "<string>"
}
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}Find a publication namespace by slug
Returns the live namespace that holds a slug in the selected Workspace, with its active and previous revision and every revision that was not removed. A producer that lost its namespace ID uses it to reserve a new revision on that namespace, remove a failed revision, or delete the namespace. A slug that no live namespace holds is not found.
POST
/
api
/
artifact-publications
/
namespaces
/
find
Python SDK
import json
import os
from parable_types_web_api import FindArtifactPublicationNamespaceInput
from parable_web_api_sdk import ClientConfig, WebApiSDK
sdk = WebApiSDK(
ClientConfig(
base_url=os.environ["PARABLE_API_URL"],
auth_token=os.environ["PARABLE_API_TOKEN"],
default_headers={"X-Tenant": os.environ["PARABLE_WORKSPACE"]},
)
)
input_data = FindArtifactPublicationNamespaceInput.model_validate(
json.loads("{\"namespaceSlug\":\"example\"}"),
)
result = sdk.artifacts.find_artifact_publication_namespace(input_data)sdk, err := webapisdk.New(webapisdk.SDKConfig{
BaseURL: os.Getenv("PARABLE_API_URL"),
Auth: &webapisdk.AuthConfig{Token: os.Getenv("PARABLE_API_TOKEN")},
RequestInterceptor: func(ctx context.Context, req *http.Request) error {
req.Header.Set("X-Tenant", os.Getenv("PARABLE_WORKSPACE"))
return nil
},
})
if err != nil {
return err
}
var input webapitypes.FindArtifactPublicationNamespaceInput
if err := json.Unmarshal([]byte(`{"namespaceSlug":"example"}`), &input); err != nil {
return err
}
result, err := sdk.ArtifactsNamespace.FindArtifactPublicationNamespace(ctx, input){
"data": {
"namespaceId": "<string>",
"namespaceSlug": "<string>",
"revisions": [
{
"revisionId": "<string>",
"state": "STAGING",
"failureCode": "<string>"
}
],
"activeRevisionId": "<string>",
"previousRevisionId": "<string>"
},
"meta": {
"requestId": "<string>",
"totalCount": 123
},
"links": {
"first": "<string>",
"last": "<string>",
"next": "<string>",
"prev": "<string>"
}
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}{
"detail": "<string>",
"status": 400,
"title": "Bad Request",
"type": "about:blank",
"code": "WA-VL-001",
"details": "<unknown>",
"errors": "<unknown>",
"requestId": "<string>"
}Access
This operation needs a Parable token. An MCP token cannot call it. See Authentication for the kinds of token. Your roles must granttenant.artifacts.view.Authorizations
Headers
Body
application/json
Response
Successful response