Difference between revisions of "API Remove Template Fields"
IVSWikiBlue (talk | contribs) |
IVSWikiBlue (talk | contribs) |
||
| Line 49: | Line 49: | ||
==Examples== | ==Examples== | ||
===Request=== | ===Request=== | ||
| − | <pre>https://ivstest1.ad.ipivs.com/api/v3/admin/templates/3/fields/159/delete?access_token= | + | <pre>https://ivstest1.ad.ipivs.com/api/v3/admin/templates/3/fields/159/delete?access_token=exampletoken</pre> |
===Successful Response=== | ===Successful Response=== | ||
Latest revision as of 15:34, 18 September 2026
This API call will delete an existing field from a template.
Contents
Resource URL
http://valt.example.com/api/v3/admin/templates/{templateid}/fields/{fieldid}/delete
Replace {templateid} with the actual id number of the template. Templates are numbered sequentially when added to VALT.
Replace {fieldid} with the actual id number of the field. Fields are numbered sequentially when added to VALT.
Resource Information
| Method | POST |
| Response Type | JSON |
| Authentication Required | Yes |
Parameters
No parameters are required for this API call.
Response
| Code | Reason |
|---|---|
| 200 | Request Successful |
| 401 | Unauthorized |
| 404 | Field Not Found |
| data | |
|---|---|
| message | Deleted |
Examples
Request
https://ivstest1.ad.ipivs.com/api/v3/admin/templates/3/fields/159/delete?access_token=exampletoken
Successful Response
{
"data":{
"message": "Deleted"
}
}
Failure Response
{
"error":{
"code": 404
}
}