Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

RestAPI SetResponseHeader

Use this command to set custom HTTP headers for a response. This command is useful when creating Solution-level REST APIs that may be called by third-party applications. For more information see "Providing REST APIs" in the Longview Integration Guide.

Copy

Syntax

RESTAPI SETRESPONSEHEADER HeaderName Value                

where:

  • HeaderName identifies the header to set.
  • Value is the value associated with the specified header.
Copy

Syntax example

RESTAPI SetResponseHeader content-type text/plain                

Published:

RestAPI SetResponseHeader

Use this command to set custom HTTP headers for a response. This command is useful when creating Solution-level REST APIs that may be called by third-party applications. For more information see "Providing REST APIs" in the Longview Integration Guide.

Copy

Syntax

RESTAPI SETRESPONSEHEADER HeaderName Value                

where:

  • HeaderName identifies the header to set.
  • Value is the value associated with the specified header.
Copy

Syntax example

RESTAPI SetResponseHeader content-type text/plain                

For an optimal Community experience, Please view on Desktop