Function: extension.Create

Creates the Extension in the system and returns the id of the Extension. The Extension must not have an id. If an id is set, a Data.Validation error is thrown.

Syntax

{
	"method": "extension.Create",
	"params": {
		"object": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<AdvGuid> Create( Extension object );
public Task<Guid> CreateAsync(Extension @object, CancellationToken ct = default);
create(object: Extension): Promise<string>;

Parameters

object : Extension

The Extension to create.

Result : guid

Id of the newly created Extension.

Errors

Data.NotFound ≥wg 0.4.16

The requested data was not found or the caller does not have the required permission to access it. For additional information, see Data.NotFound.

Data.Forbidden ≥wg 0.4.16

The caller does not have the required permissions to access the data. For additional information, see Data.Forbidden.

Data.Validation ≥wg 0.4.16

One or more Properties within the submitted Data Object were invalid. For additional information, see Data.Validation.

Call.Failure ≥wg 0.4.16

An unspecified error (e.g., an unhandled exception) has occured while executing the called function. For additional information, see Call.Failure.

Remarks

This method requires API write access.