Skip to main content

UpdateMockServerResponse

Properties

NameTypeRequiredDescription
serverResponseUpdateMockServerResponseServerResponse

UpdateMockServerResponseServerResponse

Properties

NameTypeRequiredDescription
namestringThe server response's name.
statusCodenumberThe server response's 5xx HTTP response code. This property only accepts 5xx values.
headersServerResponseHeaders2[]The server response's request headers, such as Content-Type, Accept, encoding, and other information.
languageServerResponseLanguage2The server response's body language type.
bodystringThe server response's body that returns when calling the mock server.

ServerResponseHeaders2

Information about they key-value pair.

Properties

NameTypeRequiredDescription
keystringThe request header's key value.
valuestringThe request header's value.

ServerResponseLanguage2

The server response's body language type.

Properties

NameTypeRequiredDescription
TEXTstring"text"
JAVASCRIPTstring"javascript"
JSONstring"json"
HTMLstring"html"
XMLstring"xml"

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →