Skip to main content

Change the context of an Extension

PUT/contributors/{contributorId}/extensions/{extensionId}/context/
v2
PUT
extension-change-context

Request

  • contributorIdstring
    required
  • extensionIdstring (uuid)
    required

Responses

application/json

The Extension context-change has been requested.

  • cleaningUpInstancesboolean
    required

    If this value is true the context will change asynchronously after removing all extension-instances of this extension.

  • currentContextstring (one of: project, customer)
    required
  • idstring (uuid)
    required

Usage examples

$ curl \
--fail \
--location \
-X PUT \
-d '{"context":"project"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/contributors/string/extensions/f0f86186-0a5a-45b2-aa33-502777496347/context