Skip to content

Patch

Performs the request using the PATCH method.

1
myRestRequest.Patch():RestResponse

Returns

A RestResponse instance containing the server's response.

Remarks

This method expects the response status code to be OK (200) or No Content (204), unless RestRequest.Expect is used.

Examples

Update some fields of a resource

1
2
3
4
$Rest.Create('https://api.example.com/')
    .Request('tickets/{id}', { status : 'Closed' })
    .AddUrlParameter('id', $Xml.Evaluate('TicketId'))
    .Patch();

See Also