Class FormsResource.CreateRequest
Create a new form using the title given in the provided form message in the request. Important: Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.
Inheritance
Inherited Members
Namespace: Google.Apis.Forms.v1
Assembly: Google.Apis.Forms.v1.dll
Syntax
public class FormsResource.CreateRequest : FormsBaseServiceRequest<Form>, IClientServiceRequest<Form>, IClientServiceRequestConstructors
CreateRequest(IClientService, Form)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Form body)Parameters
| Type | Name | Description | 
|---|---|---|
| IClientService | service | |
| Form | body | 
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
Unpublished
Optional. Whether the form is unpublished. If set to true, the form doesn't accept responses. If set
to false or unset, the form is published and accepts responses.
Declaration
[RequestParameter("unpublished", RequestParameterType.Query)]
public virtual bool? Unpublished { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | 
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()Returns
| Type | Description | 
|---|---|
| object | 
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()