Reference·.NET · BIM.works_SDK.NET

CreateApiTokenRequest

Class in BIM.works_SDK.

API catalogue · BIM.works_SDK · Class

.NET#
public class CreateApiTokenRequest : Request

Inheritance and interfaces#

Members#

CreateApiTokenRequest(Guid, string, ApiTokenCredential[])#

.NET#
public CreateApiTokenRequest(Guid nodeUuid, string name, ApiTokenCredential[] apiTokenCredentials)

Parameters#

Name Type Description
nodeUuid System.Guid
name System.String
apiTokenCredentials BIM.works_SDK.ApiTokenCredential[]

CreateApiTokenRequest(Guid, string, ISet<Scope>, DateTime?)#

.NET#
public CreateApiTokenRequest(Guid nodeUuid, string name, ISet<Scope> scopes, DateTime? expiresOn)

An API token restricted to the given scopes

Parameters#

Name Type Description
nodeUuid System.Guid
name System.String
scopes System.Collections.Generic.ISet{BIM.works_SDK.Scope}
expiresOn System.Nullable{System.DateTime} The day the token stops working (it works through the whole of that UTC day); null for the server's default of one month. The server refuses a day further ahead than its maximum (three years by default)

WriteInput(Utf8JsonWriter)#

.NET#
public override void WriteInput(Utf8JsonWriter writer)

Parameters#

Name Type Description
writer System.Text.Json.Utf8JsonWriter

addCredential(ApiTokenCredential)#

.NET#
public void addCredential(ApiTokenCredential apiTokenCredential)

Parameters#

Name Type Description
apiTokenCredential ApiTokenCredential

Inherited members#