Function: category.Create

Creates the Category in the system and returns the id of the Category. The Category must not have an id. If an id is set, the creation is rejected and an empty id is returned.

Syntax

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

Parameters

object : Category

The Category to create.

Result : guid

Id of the newly created Category.

Remarks

This method requires API write access.

Validation

  • Id must not be set
  • Code must be a non-empty, unique string consisting of alphanumerical characters. Additional allowed characters: _, -, /, :, #
  • Order must be a non-empty, valid sorting string, i.e. consist of all upper-case letters and not end with ‘A’