Save new activity
POST/api/v2/Activities
Save new activity
Request
- application/json
Body
required
- ActivityType
- ActivityTypeTimeEntry
Name stringrequired
Possible values: non-empty
and <= 100 characters
Code stringnullable
Possible values: <= 12 characters
Type
object
nullable
oneOf
string
Possible values: [Work
, Absence
, Break
]
TimeEntry
object
nullable
oneOf
string
Possible values: [Optional
, TotalTime
, FromTo
]
Inactive booleannullable
Movement booleannullable
Icon stringnullable
ExternalKey stringnullable
Possible values: <= 100 characters
Responses
- 201
- 400
Successfully Inserted
- application/json
- Schema
- Example (from schema)
Schema
Guid guidnullable
ExternalKey stringnullable
{
"Guid": "string",
"ExternalKey": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
Error
object
required
Code stringnullable
Message stringnullable
{
"Error": {
"Code": "string",
"Message": "string"
}
}
Loading...