Skip to main content

Add and remove targets for one overlay config

PATCH 

/program/api/v2/projects/:projectID/overlay-configs/:configID/assignments

Adds and removes targets without sending the config's whole set — for a view that pages or searches, and so never holds every checked box at once. The PUT replaces the set; this edits it.

  • add: each target is assigned this config, replacing any config it named before.
  • remove: each target's row is deleted only while it still names this config; it goes back to inheriting. A target that moved to another config in the meantime is left alone. Removing what is not assigned is a no-op.

The same target in both is a 400. All or nothing: an unknown id in add is a 400 naming every one, an output stream a 409, and a refused request writes nothing. Answers with the resulting set.

Generate JWT

Request​

Responses​

The config's assignments after the change

An unknown id in add, or a target in both lists; nothing was written

Forbidden — no project access

No such overlay config in this project

An overlay output stream in add

Internal Server Error