Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 625473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:18:48+00:00 2026-05-13T19:18:48+00:00

I am using a REST API to POST attributes to a person using json.

  • 0

I am using a REST API to POST attributes to a person using json. My request body looks like this:

$requestBody = '

{
    "attribute": {
        "@id": "",
        "@uri": "",
        "person": {
            "@id": "222",
            "@uri": "https://api_name_removed.com/v1/People/222"
        },
        "attributeGroup": {
            "@id": "",
            "@uri": "",
            "name": null,
            "attribute": {
                "@id": "2404",
                "@uri": "",
                "name": null
            }
        },
        "lastUpdatedDate": null
    }
}';

How do I change the person id, person uri and attribute id to be variables I have already stored?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:18:48+00:00Added an answer on May 13, 2026 at 7:18 pm
    $requestBody = '
    
    {
        "attribute": {
            "@id": "' . $id . '",
            "@uri": "' . $uri . '",
            "person": {
                "@id": "222",
                "@uri": "https://api_name_removed.com/v1/People/222"
            },
            "attributeGroup": {
                "@id": "",
                "@uri": "",
                "name": null,
                "attribute": {
                    "@id": "2404",
                    "@uri": "",
                    "name": null
                }
            },
            "lastUpdatedDate": null
        }
    }';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 539k
  • Answers 539k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The way I normally get around the 3-4 "concurrent" requests… May 17, 2026 at 2:16 am
  • Editorial Team
    Editorial Team added an answer Comparing pointers has nothing to do with it. The OP… May 17, 2026 at 2:16 am
  • Editorial Team
    Editorial Team added an answer I would advise to just check out the subversion repository… May 17, 2026 at 2:16 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I need to make a request to an API, using REST (POST method) in
I'm implementing a REST API using ASP.NET MVC, and a little stumbling block has
I have exposed my REST API service using WCF Service Library and started by
I'm trying to get started with Twilio's REST API using the rubygem twilio-ruby ,
I am developing a REST API layer for my application using Zend_Rest_Controller. I have
Using the old REST API, you could do call https://api.facebook.com/method/pages.isAdmin to know if a
I'm trying to create a WCF client that accesses a REST API. The API
We are trying to implement a REST API for an application we have now.
I'm working on a largely navigation-based iPhone app that communicates with a REST API
I need make a GET call to a REST api which is rate limited.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.