[Fixed]Error receiving asset info

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
zoes
Posts: 37
Joined: Sun Sep 13, 2020 2:05 am

[Fixed]Error receiving asset info

Post by zoes » Sun Feb 20, 2022 11:58 pm

Hi!

I am having an issue with getting asset information where the information from the assets endpoint seems incorrect. Here is a specific example:

INPUT

Code: Select all

# get asset information
{{baseURL}}/api/v1.0/companies/0/sites/286/assets/
OUTPUT

Code: Select all

 [
    ...
    ...
    {
        "ID": 392,
        "AssetType": {
            "ID": 2,
            "Name": "UPS / EBM / Bypass"
        }
    },
    ...
    ...
]
INPUT

Code: Select all

# specific asset information
{{baseURL}}/api/v1.0/companies/0/sites/286/assets/392
OUTPUT

Code: Select all

{
    "errors": [
        {
            "path": null,
            "message": "Customer asset not found.",
            "value": null
        }
    ]
}
Using an asset associated with the site found from the first API request fails during the second API request. I am using implicit grant type.
PremMarkeli
Posts: 148
Joined: Tue Oct 26, 2021 3:11 am

Re: Error receiving asset info

Post by PremMarkeli » Mon Feb 21, 2022 12:27 am

Hi,

We were unable to reproduce what you are experiencing on our end with our builds info. Can you please send a private message about your build details, site and assets your were trying to retrieve. So we can further look into it and find a cause for it.

Regards.
Prem
API Developer | Simpro Software Group
zoes
Posts: 37
Joined: Sun Sep 13, 2020 2:05 am

Re: Error receiving asset info

Post by zoes » Mon Feb 21, 2022 10:45 am

Did you get my message?
Post Reply