Function: cop.GetOne

Returns a single COP Object identified by the given id.

Syntax

{
	"method": "cop.GetOne",
	"params": {
		"id": "...",
		"select": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<COP> GetOne( AdvGuid id, std::optional<std::vector<AdvString>> select = std::nullopt );
public Task<COP> GetOneAsync(Guid id, CancellationToken ct = default);
getOne(id: string): Promise<COP>;

Parameters

id : guid

The COP’s id.

select : string[] optional

List of properties that should be contained in the result object.

Result : COP

Matching COP Object.

Errors

Call.Param.Value ≥wg 0.4.14

A parameter has the wrong value, e.g. it is out of the valid range or in case of enums does not map to value within that enum. For additional information, see Call.Param.Value.

Data.NotFound ≥wg 0.4.14

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

Remarks

This method requires API read access.