/api/v1/clients/:client_id/packages: the API packages a client holds from
you, or, for a client that has not accepted its invite yet, is set up to get
when it does.
An assignment is %{"id", "api_package_id", "api_package_name", "environment_id", "status" => "active" | "pending" | "refused", "refusal", "inserted_at", "updated_at"}.
Summary
Functions
Assigns an API package to a client. attrs: api_package_id and
environment_id (required). Refused with "already_assigned", or
"nothing_published_in_environment" when the package would give the client
no grant there. Options: idempotency_key:.
Un-assigns a package: %{"id", "deleted" => true}.
One page of a client's assignments. Options: limit:, after:.
Every assignment of a client. Raises EndPointBlank.Management.Error.
Moves assignment id to another environment. attrs: environment_id.
Functions
@spec create(EndPointBlank.Management.t(), String.t(), map() | keyword(), keyword()) :: EndPointBlank.Management.result(map())
Assigns an API package to a client. attrs: api_package_id and
environment_id (required). Refused with "already_assigned", or
"nothing_published_in_environment" when the package would give the client
no grant there. Options: idempotency_key:.
@spec delete(EndPointBlank.Management.t(), String.t(), String.t()) :: EndPointBlank.Management.result(map())
Un-assigns a package: %{"id", "deleted" => true}.
@spec list(EndPointBlank.Management.t(), String.t(), keyword()) :: EndPointBlank.Management.result(EndPointBlank.Management.Page.t())
One page of a client's assignments. Options: limit:, after:.
@spec stream(EndPointBlank.Management.t(), String.t(), keyword()) :: Enumerable.t()
Every assignment of a client. Raises EndPointBlank.Management.Error.
@spec update(EndPointBlank.Management.t(), String.t(), String.t(), map() | keyword()) :: EndPointBlank.Management.result(map())
Moves assignment id to another environment. attrs: environment_id.