Namespaces

A namespace represents a grouping of pipelines. Normally it is used to divide teams or logically different sections of workloads. It is the highest level unit as it sits above pipelines in the hierarchy of Gofer


List all namespaces

GET/api/namespaces

Responses

StatusBodyDescription
200ListNamespacesResponsesuccessful operation
4XXErrorError
5XXErrorError

Create a new namespace

POST/api/namespaces

This route is only accessible for admin tokens.

Request body (required): CreateNamespaceRequest

Responses

StatusBodyDescription
201CreateNamespaceResponsesuccessful creation
4XXErrorError
5XXErrorError

Get api namespace by id

GET/api/namespaces/{namespace_id}

Path parameters

NameTypeRequiredDescription
namespace_idstringyesThe unique identifier for the target namespace.

Responses

StatusBodyDescription
200GetNamespaceResponsesuccessful operation
4XXErrorError
5XXErrorError

Update a namespace's details

PATCH/api/namespaces/{namespace_id}

This route is only accessible for admin tokens.

Path parameters

NameTypeRequiredDescription
namespace_idstringyesThe unique identifier for the target namespace.

Request body (required): UpdateNamespaceRequest

Responses

StatusBodyDescription
200UpdateNamespaceResponsesuccessful operation
4XXErrorError
5XXErrorError

Delete api namespace by id

DELETE/api/namespaces/{namespace_id}

This route is only accessible for admin tokens.

Path parameters

NameTypeRequiredDescription
namespace_idstringyesThe unique identifier for the target namespace.

Responses

StatusBodyDescription
204nonesuccessful deletion
4XXErrorError
5XXErrorError