Accept a pending entry
POST/api/v1/resources/pending/accept
Recognizes a pending Platform / Device Type / Group / Version. Resources are auto-created from the reported values (existing ones are just cleared); a Version is created via the pending-versions flow.
Request
- application/json
Body
required
Possible values: [PLATFORM, DEVICE_TYPE, GROUP, VERSION]
Which kind of pending entry this is (platform / device type / group / version)
Identifier of the pending entry. For PLATFORM/DEVICE_TYPE/GROUP it is the reported token; for VERSION it is "projectName@version".
Optional free-text note explaining the decision; stored on the pending entry for audit
Display name for the created resource. For PLATFORM/DEVICE_TYPE, defaults to the reported token. For GROUP it is a display name distinct from the numeric unit (the unit becomes the group id); defaults to "Unit
Optional description for the created resource (e.g. a unit/group description).
GROUP only: id of the parent unit to nest the new unit under. Omit to create a root unit.
Default value: true
GROUP only: attach the devices that reported this unit to the newly created unit. Defaults to true; set to false to skip.
VERSION only: create the version as a draft release. Defaults to true.
Username performing the action. Populated from the auth token by the gateway (used when a VERSION accept creates the project/release on the user behalf).
Responses
- 200
- 400
Entry accepted and recognized
Invalid request or entry already processed