VGA Planets

Introduction

How The Website Works

Races

Dashboard

Starmap

Planets

Starships

General Information

Guides

Contributions

Searchable Documentation

API account createofficer


Introduction —> How The Website Works —> API —> API account createofficer

Overview of /account/createofficer API call

Creates an officer of the specified race for an account

Data Sent

Data Description
apikey Player's existing API key
raceid Race (ID) to activate

Data Returned

If the process is successful, the following response is generated.

Data Description
success True

Failures

{"success":false,"error":"Missing required parameter - apikey"}

{"success":false,"error":"Missing required parameter - raceid"}

{"success":false,"error":"Duplicate entry '115424-8' for key 'AccountId_RaceId' at GeoTools.DataAccess.DataAccess.ExecuteNonQuery()\r\n at GeoTools.DataAccess.DataAccess.Insert(BaseObject obj)\r\n at MasterData.OfficerData.CreateOfficer(Int64 accountId, Races raceId) in C:\\dev\\MasterData\\MasterData\\Officer.cs:line 270\r\n at PlanetsAPI.AccountActions2.createofficer(Account account, Int64 raceid) in C:\\dev\\PlanetsAPI\\v2\\AccountActions.cs:line 1839"}

Back