Share via


Edit

The Edit operation edits a Runbook entitiy instance.

Request

Method Request URI HTTP Version

POST

HTTPS://<HOST>:<PORT>/00000000-0000-0000-0000-000000000000/Runbooks(guid'<GUID>')/Edit

HTTP/1.1

Note

This OData operation requires the request URL to point to an instance of the Runbook entity.

Behavior

The following table describes how this operation behaves.

Setting Value

Is composable?

False

Has side effects?

True

Requires an entity instance?

True

Return type

Edm.Guid

Results belong to an entity set?

None

Parameters

Parameters are passed in either the URL of the operation, or the body, depending on the HTTP method used. The following table describes the parameters of this operation.

Name Type Nullable Description

GUID

Edm.Guid

False

The unique identifier for the runbook.

Code Example

POST https://sma-server:9090/00000000-0000-0000-0000-000000000000/Runbooks(guid'ba12b433-342e-4c15-88a1-942020c7a92e')/Edit HTTP/1.1

Uri editRunbookUri = new Uri(string.Concat(SMAService.Runbooks, string.Format("(guid'{0}')/{1}", runbookID, "Edit")), UriKind.Absolute);
var returnValue = SMAService.Execute<Guid>(editRunbookUri, "POST", true);

See Also

Concepts

Runbook