Key questions about this property
The answers below summarize the purpose, scope, default effect, and review scenarios for this property.
| What does it do? |
For empty-content POST, PUT, and PATCH requests, allows an attachment to serve as the request body when no attachment source ID is provided. |
| What area does it affect? |
REST request handling |
| What does the default mean? |
The default value is "true", which means this behavior is enabled by default. |
| When should you review it? |
Review when changing how empty-content REST requests identify attachments used as request bodies. |
Property record
No out of the box record exists. ServiceNow scripts read this property and use the default value shown until you create it.
| Property name |
glide.rest.allow.empty.content.attachment.source.id |
| Type |
boolean |
| Application |
Not stated |
| Default value |
true |
| Description |
Not stated |
Sources
Official references and nearby text excerpts where this property appears.
Used in
Out of the box artefacts that read this property. Append the path to your instance URL to open the record and see how the value is used.
Business rule: RESTClient
For POST, PUT, or PATCH requests with no content, the REST business rule checks this setting to decide whether to use an attachment as the request body when no attachment source ID is provided. Turning it off requires a source ID; the code’s default is true.
/sys_script.do?sys_id=366bccb3472221004695d7527c9a717a
More in glide.rest
Other properties in the same namespace.
All 30 properties in glide.rest →