Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

delete
URL/api/v1/api.php?target=resourceHolderresource&action=delete
DescriptionDelete an resource holder.
ReturnsExamples:
SUCCESSFUL: {"success":1,"message":"Resource deleted."}
ERROR: {"success":0,"message":"No resource found with ID: 57"}
Required Parameters
NameTypeNotes/Example
idINTEGERID of the resource
Example URL/api/v1/api.php?target=resource&action=delete&id=57
add
URL/api/v1/api.php?target=resource&action=add
DescriptionDelete an resource holder.
ReturnsExamples:
SUCCESSFUL: {"success":1,"message":"Resource deleted."}
ERROR: {"success":0,"message":"No resource found with ID: 57"}
Required Parameters
NameTypeNotes/Example
meta[name]STRINGName of the resource
meta[type]STRINGType of resource (entry, section, field, ect)
Optional Parameters
NameTypeNotes/Example
parent_idINTEGERID of the parent resource
Example URL/api/v1/api.php?target=resource&action=delete&id=57