Skip to main content
Solved

Unable to Create a project Rest API

  • June 22, 2023
  • 3 replies
  • 75 views

Driss
Jr Varsity III
Forum|alt.badge.img

Hey Team

 

i’m sending a POST request to create Project in Acumatica but it not throwing an Error at all it showing success but i can’t find it in Acumatica 

 

POST : https://mycompany.acumatica.com/entity/projects/22.200.001/Project

BODY : 

 

{
  "ProjectID": {
    "value": "P-76732"
  },
  "ProjectCountry": {
    "value": "Montgomery"
  },
  "Description": {
    "value": "TEST"
  },
  "GL": {
    "value": "CSMABAWA"
  }
}

 

 

 

Thank you so much

Best answer by jinin

Hi @Driss,

You should use the PUT method to create/update the project.

Try like below.

Url: /entity/Test/20.200.001/Project

Method: PUT
Request:
 

{

    "ProjectID": {

        "value": "PR00000016"

    },

    "Customer": {

        "value": "AACUSTOMER"

    },

    "ProjectTemplateID": {

        "value": "MFG"

    },

    "Status": {

        "value": "Active"

    }

}

3 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • June 22, 2023

Hi @Driss,

You should use the PUT method to create/update the project.

Try like below.

Url: /entity/Test/20.200.001/Project

Method: PUT
Request:
 

{

    "ProjectID": {

        "value": "PR00000016"

    },

    "Customer": {

        "value": "AACUSTOMER"

    },

    "ProjectTemplateID": {

        "value": "MFG"

    },

    "Status": {

        "value": "Active"

    }

}


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • June 22, 2023

@Driss , @jinin is correct. Here’s an example for your reference:

Postman Call

Here’s the result:

Project seen in UI

 

Hopefully it helps


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • June 22, 2023

@RohitRattan88 @jinin  Thank you so much 👏👏