HttpRequest.data Property

Parent Object: HttpRequest
Defined in namespace "adsk::core" and the header file is <Core/Application/HttpRequest.h>

Description

Gets and sets the body data to send with this request.

Syntax

"httpRequest_var" is a variable referencing a HttpRequest object.

# Get the value of the property.
propertyValue = httpRequest_var.data

# Set the value of the property.
httpRequest_var.data = propertyValue
"httpRequest_var" is a variable referencing a HttpRequest object.
#include <Core/Application/HttpRequest.h>

// Get the value of the property.
string propertyValue = httpRequest_var->data();

// Set the value of the property, where value_var is a string.
bool returnValue = httpRequest_var->data(value_var);

Property Value

This is a read/write property whose value is a string.

Samples

Name Description
Gets all properties using GraphQL

Fetches bulk component properties of the root component and from occurrences via single GraphQL query.

Get part number using GraphQL Fetches part number of root component and from occurrences via GQL query.
Set part number using GraphQL Sets part number of root component and from occurrences via GQL query.

Version

Introduced in version January 2024