Versions Compared

Key

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

...

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)

Required Parameters

(for meta[type]=entry)


One of the following:

NameTypeNotes/Example
section_idINTEGERID of the section that the entry will be assigned to
sectionSTRINGSlug of the section that the entry will be assigned to
Optional Parameters
NameTypeNotes/Example
parent_idINTEGERID of the parent resource

Optional Parameters

(for meta[type]=entry)

 
Example URL/api/v1/api.php?target=resource&action=delete&id=57