action threatjammer_change_status_of_the_origin_denylist_v1_denylist_private_denylis { label: "Toogle the status of the origin in a deny list." description: "### What\nChange the status of the origin of a deny list to ``ACTIVE``, ``INACTIVE`` or ``DELETED``.\n\nAn ``ACTIVE`` origin will apply the deny list to the protocol and domain of the origin. An origin can be created and activated simply toogling the ``ACTIVE`` status. As an optional parameter it can be provided an ``ttl`` or Time To Live parameter of the origin in the list in seconds. After the TTL expires, the origin will be removed from the list. If the TTL is not provided, the origin will never expire.\n\nAn ``INACTIVE`` origin will not apply the deny list to the protocol and domain of the origin.\n\nA ``DELETED`` origin will be removed from the list. It will not be used by the service anymore. The user can activate it again with the ``ACTIVE`` status.\n\nThis is an asynchronous operation. It can take several seconds until the operation completes, but the request will immediately return a 202 Accepted response.\n\n*This operation is not available in the Freemium plan.*\n\n### Parameters\nIn the query string the ID of the deny list to change the status.\nIn the body the JSON object with the following fields:\n- ``origin``: The protocol and domain of the origin. It can be ``http://example.com`` or ``https://example.com``.\n- ``status``: The status of the list. It can be ``ACTIVE``, ``INACTIVE`` or ``DELETED``.\n\n### Result\nIt should always return a 202 Accepted response with an empty body.\n\n### Errors\n\nIf the list does not exist, it will return a 404 error.\nIf the status is not ``ACTIVE`` or ``INACTIVE``, it will return a 422 error.\nIf the TTL is negative in the past, it will return a 422 error.\nIf the deny list is not a valid UUID, it will return a 422 error.\nIf the origin is not a valid URL, it will return a 400 error.\nIf the denylist is not active, it will returna 409 error.\nIf the origin is not found in the set owned by the user, it will return a 404 error.\n\nIt will return the API Global errors described in the API description." provider: threatjammer method: PUT path: "/v1/denylist/private/{denylist_id}/origin" encoding: json input: { type: "object" properties: { denylist_id: { type: "string" format: "uuid" } origin: { type: "string" format: "uri" description: "The protocol and domain of the origin to change the status" } status: { type: "string" description: "The status of the list. ACTIVE, INACTIVE, DELETED" enum: ["ACTIVE", "INACTIVE", "DELETED"] } } required: ["denylist_id", "origin", "status"] additionalProperties: false } output: { type: "object" } }