Removes the specified project or environment from the allowed access list of the defined agent.
If an environmentName is supplied, then this will be removed, but the project will remain in the Agent’s Allow List. If no environmentName is supplied, then the project (and any associated environments) will be removed from the Agent’s Allow list.
NOTE: Whilst the Agent property restrictedAccess is set to false, any amendments to allow will not be enforced until restrictedAccess is set to true.
a valid bearer token
The ID of the agent to remove project and/or environment access from
The ID of the project to remove from Agent allow list if no environment is provided, or the project id to remove the environment from
Optional environment to remove from the Agent's allowed usage of the project (if not provided, removes entire project)
Project and/or environment successfully removed from Agent Allow list