Planfix API project.add / Create a project

From Planfix
Revision as of 09:04, 3 August 2022 by Aliona (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Requests to create projects look as follows:

<?xml version="1.0" encoding="UTF-8"?>
<request method="project.add">
      <!-- ... -->
      <!-- ... -->
      <!-- ... -->
      <!-- ... -->

If you don't pass a creator or set id=0, the user of the current session will be used as the creator. Counterparty is not a required parameter. Regular users (not contacts) are able to call this function.

Name Type Value Notes
sid string(32) session key created as a result of passing authentication Authentication
title string Project name
description string Description of the project set by the user
owner This field is not required. In this case, the creator will be the user who is making the request (determined by sid) int dentifier of the user who will be the project creator. value 0 (zero) allowed. In this case, the creator will be the user who is making the request (determined by sid)
client not required int counterparty identifier value 0 (zero) allowed.
status enum status of the project being created for a list of valid values for this field, see the project statuses section
hidden bool hidden
hasEndDate bool whether or not there is an end date
endDate DateTime only used if hasEndDate parameter is true
group not required int project group identifier
parent not required int parent project identifier
auditors project auditors not required int project auditor identifier
managers project managers not required int project manager identifier
assignees project default assignees int default project assignee identifier
customData project custom field values project custom field identifier
customData.customValue.value project custom field value (for task set, employee list, and directory entry set field types, separate identifiers with commas in square brackets)

Response when project creation is successful:

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
Name Type Value Notes int identifier of project created

Otherwise, an error response will be returned:

<?xml version="1.0" encoding="UTF-8"?>
<response status="error">

Go To