GanjoorLiterary

approve (with edits) or reject a suggested device: Status of the posted device is the decision (Auth policies: ganjoor:modify)

Changed on
post/api/ganjoor/literary/device/moderate

Request

  • Base URL
    https://api.ganjoor.net (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header Authorization

Request body

idinteger

id

keystring nullable

optional stable code for devices the program refers to by name (e.g. "tashbih"); null for user suggested ones

namestring nullable

Persian name

category0 | 1 | 2 | 3 | 4

broad group of a literary device, as books on rhetoric group them

definitionstring nullable

operational definition: when exactly may this tag be used

examplestring nullable

an example and/or boundary note

sourcestring nullable

the book or reference the definition comes from

isCoreboolean

part of the initial core list (as opposed to extension)

status0 | 1 | 2

status of an entity (device, concept) that users can suggest and moderators approve

suggestedByUserIdstring uuid nullable

suggesting user (null for the seeded core list)

createDatestring date-time

suggestion date

reviewNotestring nullable

moderator note

Response

OK

idinteger

id

keystring nullable

optional stable code for devices the program refers to by name (e.g. "tashbih"); null for user suggested ones

namestring nullable

Persian name

category0 | 1 | 2 | 3 | 4

broad group of a literary device, as books on rhetoric group them

definitionstring nullable

operational definition: when exactly may this tag be used

examplestring nullable

an example and/or boundary note

sourcestring nullable

the book or reference the definition comes from

isCoreboolean

part of the initial core list (as opposed to extension)

status0 | 1 | 2

status of an entity (device, concept) that users can suggest and moderators approve

suggestedByUserIdstring uuid nullable

suggesting user (null for the seeded core list)

createDatestring date-time

suggestion date

reviewNotestring nullable

moderator note

Changes