grants

PATCH /api/grants/{id}

Changed on

Airtime grants: a window of airtime given to one organization, and the list of what plays in it.

Members see their organizations' grants and replace a grant's list while it is open (or until air, if it is exempt from locking). Staff see every grant, create grants, and cancel or exempt them.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

idinteger required

A unique integer value identifying this airtime grant.

Request body

state'cancelled'

Only 'cancelled': withdraw the grant and free its window.

  • cancelled - cancelled
locksAtstring date-time
lockExemptboolean
starttimestring date-time

Move the start, until the grant is on air. A start that has passed means now. Entries that no longer fit come off the list; an earlier start needs the extra time to be free.

endtimestring date-time

Move the end, even while the grant is on air: what is on air past it is cut short there. Entries that no longer fit come off the list. A later end needs the extra time to be free.

Response

state'cancelled'

Only 'cancelled': withdraw the grant and free its window.

  • cancelled - cancelled
locksAtstring date-time
lockExemptboolean
starttimestring date-time

Move the start, until the grant is on air. A start that has passed means now. Entries that no longer fit come off the list; an earlier start needs the extra time to be free.

endtimestring date-time

Move the end, even while the grant is on air: what is on air past it is cut short there. Entries that no longer fit come off the list. A later end needs the extra time to be free.

Changes

    • breaking

      added to the oneOf[#/components/schemas/GrantsPartialUpdateValidationError]/errors/items response property oneOf list for the response status

    • info

      added the optional property endtime to the response with the status

    • info

      added the optional property starttime to the response with the status

    1 more change in this revision