Create Author

Create Author

You can only create an Author object for yourself.

Request
URI
POST
https://apigw.vmware.com/sampleExchange/v1/authors
COPY
Request Body
Author of type(s) application/json
Optional
{
    "id": 0,
    "federationId": "string",
    "communitiesUser": "string",
    "fullName": "string",
    "gitHubLogin": "string",
    "gitHubToken": "string",
    "linked": false,
    "score": "number"
}
integer As int32 As int32
id
Optional

id

string
federationId
Optional

federationId

string
communitiesUser
Optional

communitiesUser

string
fullName
Optional

fullName

string
gitHubLogin
Optional

gitHubLogin

string
gitHubToken
Optional

gitHubToken

boolean
linked
Optional

linked

number As double As double
score
Optional

score

object
preferences
Optional

preferences

Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns Author of type(s) application/json
{
    "id": 0,
    "federationId": "string",
    "communitiesUser": "string",
    "fullName": "string",
    "gitHubLogin": "string",
    "gitHubToken": "string",
    "linked": false,
    "score": "number"
}
integer As int32 As int32
id
Optional

id

string
federationId
Optional

federationId

string
communitiesUser
Optional

communitiesUser

string
fullName
Optional

fullName

string
gitHubLogin
Optional

gitHubLogin

string
gitHubToken
Optional

gitHubToken

boolean
linked
Optional

linked

number As double As double
score
Optional

score

object
preferences
Optional

preferences


400

Bad Request, invalid author data was supplied.

Operation doesn't return any data structure

401

Unauthorized, credentials not supplied or incorrect.

Operation doesn't return any data structure

403

Forbidden, Unable to create an author other than yourself.

Operation doesn't return any data structure

409

The author already exists.

Operation doesn't return any data structure